package com.cip.email.picasa.domain;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@RooJavaBean
@RooToString
@RooEntity
public class Config {

    private String userId;

    private String scope;

    private Boolean linkPicasa;

    private String picasaToken;

    private String picasaTokenSecret;

    @NotNull
    @Pattern(regexp = "^([0-9a-zA-Z]([-.\\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\\w]*[0-9a-zA-Z]\\.)+[a-zA-Z]{2,9})$")
    private String gmailAccount;
}
